import request from '@/utils/request'

// 查询页面推荐列表
export function listPagerecommend(query) {
  return request({
    url: '/system/pagerecommend/list',
    method: 'get',
    params: query
  })
}

// 查询页面推荐详细
export function getPagerecommend(id) {
  return request({
    url: '/system/pagerecommend/' + id,
    method: 'get'
  })
}

// 新增页面推荐
export function addPagerecommend(data) {
  return request({
    url: '/system/pagerecommend',
    method: 'post',
    data: data
  })
}

// 修改页面推荐
export function updatePagerecommend(data) {
  return request({
    url: '/system/pagerecommend',
    method: 'put',
    data: data
  })
}

// 删除页面推荐
export function delPagerecommend(id) {
  return request({
    url: '/system/pagerecommend/' + id,
    method: 'delete'
  })
}

// 导出页面推荐
export function exportPagerecommend(query) {
  return request({
    url: '/system/pagerecommend/export',
    method: 'get',
    params: query
  })
}